package com.wl2o2o.lanqiao.xzfourteen;

import java.util.Scanner;

/** 
* @author : WLei224
* @date ：2023年3月22日 上午2:27:09 
* 
*/
public class String常用API和处理方法 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String idCard = scan.next();
        char pos17 = idCard.charAt(16);
        if(pos17 == '1' || pos17 == '3' || pos17=='5'){
            System.out.println("BOY");
        } else System.out.println("GIRL");

        //char to number
        int n = idCard.charAt(16) - '0';
        //subString
        int m = Integer.valueOf(idCard.substring(16,17));
        System.out.println();;
        //indexOf
        System.out.println("13579".indexOf(pos17) == -1? "Girl" : "BOY");
        //contains
//        String pos17 = idCard.substring(16,17);
//        System.out.println("13579".contains(pos17)? "Girl" : "BOY");
        
        scan.close();
    }
}
